package com.emser.unc.serializable;

import java.io.Serializable;

public class ProductDTO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private transient Long id;
	private Long code;
	private String title;
	private Double unitPrice;
	private Long stock;
	
	public Long getCode() {
		return code;
	}
	public void setCode(Long code) {
		this.code = code;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Double getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(Double unitPrice) {
		this.unitPrice = unitPrice;
	}
	public Long getStock() {
		return stock;
	}
	public void setStock(Long stock) {
		this.stock = stock;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Override
	public String toString() {
		return "Product [code = " + code + ", title = " + title + 
		"unitPrice = " + unitPrice+ "stock = " + stock+ "]";
	}
}
